package com.gadgets.cm04.fileoper.controller;

import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author UncleXiu
 * @version V1.0.0
 * @data 2020-09-16
 *
 */
public interface IFileOperationController {

    /**
     * 文件上传
     * @param request   请求信息
     * @param response  应答信息
     * @param file      上传文件
     * @return          文件序列号
     */
    public String fileUpload(HttpServletRequest request, HttpServletResponse response, MultipartFile file);

    /**
     * 文件下载
     * @param request   请求信息
     * @param response  应答信息
     * @param fileuuid  文件序列号
     * @return          文件内容
     */
    public void fileDownload(HttpServletRequest request, HttpServletResponse response, String fileuuid);


}
